<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
</head>

<body>
    <div id="app">
        <!-- 自定义属性   语法 -->
        <!-- <div v-bind:属性名称="值"></div> -->

        <!-- 绑定动态属性 -->
        <div v-bind:title="title">鼠标放盒子上</div>
        <div :title="title">这是一个盒子</div>
    </div>



    <script>
        const { createApp } = Vue;

        createApp({
            data() {
                return {
                    title: '哈哈哈哈'
                }
            }
        }).mount('#app')




    </script>
</body>

</html>